<?php

use Phalcon\Mvc\Router as PhRouter;

$di->set('router', function() {
	$router = new PhRouter(false);

	/**
 	 * loading routes from the routes.php file
	 */
    $router->add('/connections/acceptRequest/:params', array(
        'controller'    => 'connections',
        'action'        => 'acceptRequest',
        'params' => 1

    ));
    $router->add('/profile/listPending/:params', array(
        'controller'    => 'profile',
        'action'        => 'listPending',
        'params' => 1

    ));

    $router->add('/api/getinfo/:params', array(
        'controller'    => 'api',
        'action'        => 'getInfo',
        'params' => 1

    ));

    $router->add('/users/presence/:params', array(
        'controller'    => 'users',
        'action'        => 'presence',
        'params' => 1

    ));

    $router->add('/users/logout/:params', array(
        'controller'    => 'users',
        'action'        => 'logout',
        'params' => 1

    ));

    $router->add('/api/upload/:params', array(
        'controller'    => 'Api',
        'action'        => 'upload',
        'params' => 1

    ));
    $router->add('/registration/save/:params', array(
        'controller'    => 'Registration',
        'action'        => 'save',
        'params' => 1

    ));
    $router->add('/connections/check/:params', array(
        'controller'    => 'Connections',
        'action'        => 'check',
        'params' => 1

    ));

     $router->add('/feeds/updateTotalPosts/:params', array(
        'controller'    => 'Feeds',
        'action'        => 'updateTotalPosts',
        'params' => 1

    ));

    $router->add('/connections/requestConnection/:params', array(
        'controller'    => 'Connections',
        'action'        => 'requestConnection',
        'params' => 1

    ));

    $router->add('/connections/insert/:params', array(
        'controller'    => 'Connections',
        'action'        => 'insert',
        'params' => 1

    ));

    $router->add('/likes/delete/:params', array(
        'controller'    => 'Likes',
        'action'        => 'delete',
        'params' => 1

    ));
    $router->add('/likes/insert/:params', array(
        'controller'    => 'Likes',
        'action'        => 'insert',
        'params' => 1

    ));
    $router->add('/comment/insert/:params', array(
        'controller'    => 'Comments',
        'action'        => 'insert',
        'params' => 1

    ));
    $router->add('/user/register/:params', array(
        'controller'    => 'Users',
        'action'        => 'register',
        'params' => 1

    ));

    $router->add('/user/login/:params', array(
        'controller'    => 'Users',
        'action'        => 'login',
        'params' => 1

    ));

	$router->add('/user/fblogin/:params', array(
        'controller'    => 'Users',
        'action'        => 'fblogin',
        'params' => 1

    ));

    $router->add('/user/upload/:params', array(
        'controller'    => 'Users',
        'action'        => 'upload',
        'params' => 1

    ));

    $router->add('/feeds/insert/:params', array(
        'controller'    => 'feeds',
        'action'        => 'insert',
        'params' => 1

    ));

    $router->add('/feeds/convert/:params', array(
        'controller'    => 'feeds',
        'action'        => 'convert',
        'params' => 1

    ));


    $router->add('/feeds/push/:params', array(
        'controller'    => 'feeds',
        'action'        => 'push',
        'params' => 1

    ));

   
	return $router;
});

